package dshumsky.jooq;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ComponentScan
@EnableAutoConfiguration
public class Application {
	public static void main(String[] args) {

		ConfigurableApplicationContext context = SpringApplication.run(
				Application.class, args);

		CurrencyRepository currencyRepository = context
				.getBean(CurrencyRepository.class);
		try {
			currencyRepository.test2();
		} catch (Exception e) {
			e.printStackTrace();
		}

	}
}